import xlrd
import os
import psycopg2

inp = input("输入文件绝对路径：")
if os.access(inp,os.R_OK):
    workbook = xlrd.open_workbook(inp)
    sheet = workbook.sheet_by_index(0)
    table=[]
    for i in range(sheet.nrows):
        if i==0:
            continue
        sheet_data = []
        sheet_data.append(sheet.cell_value(i,0))
        sheet_data.append(sheet.cell_value(i,1))
        sheet_data.append(sheet.cell_value(i,2))
        sheet_data.append(sheet.cell_value(i,3))
        sheet_data.append(sheet.cell_value(i,4))
        table.append(sheet_data)
    for row in table:
        print(row)
